package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Bill entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="bill"
    ,catalog="hospital"
)

public class Bill  implements java.io.Serializable {


    // Fields    

     private Integer billId;
     private Integer clientId;
     private Integer operatorId;
     private Integer doctorId;
     private Integer departmentId;
     private Integer clinicId;
     private String category;
     private Double totalCost;
     private Double totalPrice;
     private Timestamp datetime;
     private Integer status;


    // Constructors

    /** default constructor */
    public Bill() {
    }

    
    /** full constructor */
    public Bill(Integer clientId, Integer operatorId, Integer doctorId, Integer departmentId, Integer clinicId, String category, Double totalCost, Double totalPrice, Timestamp datetime, Integer status) {
        this.clientId = clientId;
        this.operatorId = operatorId;
        this.doctorId = doctorId;
        this.departmentId = departmentId;
        this.clinicId = clinicId;
        this.category = category;
        this.totalCost = totalCost;
        this.totalPrice = totalPrice;
        this.datetime = datetime;
        this.status = status;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="billId", unique=true, nullable=false)

    public Integer getBillId() {
        return this.billId;
    }
    
    public void setBillId(Integer billId) {
        this.billId = billId;
    }
    
    @Column(name="clientId", nullable=false)

    public Integer getClientId() {
        return this.clientId;
    }
    
    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }
    
    @Column(name="operatorId", nullable=false)

    public Integer getOperatorId() {
        return this.operatorId;
    }
    
    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }
    
    @Column(name="doctorId", nullable=false)

    public Integer getDoctorId() {
        return this.doctorId;
    }
    
    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }
    
    @Column(name="departmentId", nullable=false)

    public Integer getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
    
    @Column(name="clinicId", nullable=false)

    public Integer getClinicId() {
        return this.clinicId;
    }
    
    public void setClinicId(Integer clinicId) {
        this.clinicId = clinicId;
    }
    
    @Column(name="category", nullable=false, length=50)

    public String getCategory() {
        return this.category;
    }
    
    public void setCategory(String category) {
        this.category = category;
    }
    
    @Column(name="totalCost", nullable=false, precision=22, scale=0)

    public Double getTotalCost() {
        return this.totalCost;
    }
    
    public void setTotalCost(Double totalCost) {
        this.totalCost = totalCost;
    }
    
    @Column(name="totalPrice", nullable=false, precision=22, scale=0)

    public Double getTotalPrice() {
        return this.totalPrice;
    }
    
    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }
    
    @Column(name="datetime", nullable=false, length=19)

    public Timestamp getDatetime() {
        return this.datetime;
    }
    
    public void setDatetime(Timestamp datetime) {
        this.datetime = datetime;
    }
    
    @Column(name="status", nullable=false)

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
   








}